
<script language="javascript" type="text/javascript" src="/assets/My97DatePicker/jquery-1.8.2.js"></script>
<script language="javascript" type="text/javascript" src="/assets/libs/fastadmin-layer/dist/layer.js"></script>





<style>
    .g_p_type{
        display: none;
    }
    #suggestions{
        background-color: black;
        color: white;
    }

    #autoSuggestionsList{
        background-color: black;
        color: white;
    }
    .suggestionList li {

        margin: 0px 0px 0px 0px;
        padding: 3px;
        cursor: pointer;
    }

    .suggestionList li:hover {
        background-color: #659CD8;

    }

    #j1suggestions{
        background-color: black;
        color: white;
    }

    #j1autoSuggestionsList{
        background-color: black;
        color: white;
    }
    .j1suggestionList li {

        margin: 0px 0px 0px 0px;
        padding: 3px;
        cursor: pointer;
    }

    .j1suggestionList li:hover {
        background-color: #659CD8;

    }

</style>
<script language="JavaScript">




</script>




<div class="content">
<div class="panel panel-default panel-intro">
    <div class="panel-body">
        <div id="" class="tab-content">
            <div class="tab-pane fade active in" id="one">
                <div class="widget-body no-padding">
                    <div class="bootstrap-table">
                        <div class="fixed-table-toolbar">
                            <div class="bs-bars pull-left">
                                <div id="toolbar" class="toolbar" style="position: relative;">

                                 <a href="/admin/product/reviews_add?pid={$pid}" class="btn btn-success btn-add " title="添加"><i class="fa fa-plus"></i> 添加</a>

                                </div>
                            </div>
                           <form action="" method="post">
                                <table  class="table table-striped table-bordered table-hover table-nowrap" data-operate-edit="1" data-operate-del="1" width="100%" border="1">
                                    <thead>
                                    <tr>
                                       <!-- <th style="text-align: center; vertical-align: middle;width:4.5%;" data-field="id">
                                            <div class="th-inner ">用户ID</div>
                                            <div class="fht-cell"></div>
                                        </th>-->
                                        <th style="text-align: center; vertical-align: middle;width:4.5%; height:45px" data-field="id">
                                            <div class="th-inner ">头像</div>
                                            <div class="fht-cell"></div>
                                        </th>
                                        <th style="text-align: center; vertical-align: middle;width:4.5%;" data-field="id">
                                            <div class="th-inner ">用户名</div>
                                            <div class="fht-cell"></div>
                                        </th>

                                        <th style="text-align: center; vertical-align: middle;width:15%;" data-field="title">
                                            <div class="th-inner ">总体评价</div>
                                            <div class="fht-cell"></div>
                                        </th>
                                        <th style="text-align: center; vertical-align: middle;width:15%;" data-field="title">
                                            <div class="th-inner ">导游服务</div>
                                            <div class="fht-cell"></div>
                                        </th>
                                        <th style="text-align: center; vertical-align: middle;width:5%;" data-field="title">
                                            <div class="th-inner ">行程安排</div>
                                            <div class="fht-cell"></div>
                                        </th>
                                        <th style="text-align: center; vertical-align: middle;width:5%;" data-field="title">
                                            <div class="th-inner ">餐饮住宿</div>
                                            <div class="fht-cell"></div>
                                        </th>
                                        <th style="text-align: center; vertical-align: middle;width:5%;" data-field="title">
                                            <div class="th-inner ">旅行交通</div>
                                            <div class="fht-cell"></div>
                                        </th>
                                        <th style="text-align: center; vertical-align: middle;width: 20%;" data-field="operate">
                                            <div class="th-inner ">时间</div>
                                            <div class="fht-cell"></div>
                                        </th>
                                        <th style="text-align: center; vertical-align: middle;width:15%;" data-field="title">
                                            <div class="th-inner ">状态</div>
                                            <div class="fht-cell"></div>
                                        </th>
                                        <th style="text-align: center; vertical-align: middle;width: 20%;" data-field="operate">
                                            <div class="th-inner ">操作</div>
                                            <div class="fht-cell"></div>
                                        </th>
                                    </tr>
                                    </thead>
                                    <tbody data-listidx="0">
                                    {volist name="eList" id="vo"}
                                    <tr >
                                       <!-- <td style=" text-align: center; vertical-align: middle;">
                                                 <span>{$vo.userid}</span>
                                        </td>-->
                                        <td style="text-align: center; vertical-align: middle; ">
                                          <img src="{$vo['userimg']}" width="25" height="25">
                                        </td>
                                        <td style="text-align: center; vertical-align: middle; ">
                                            {$vo.username}{if condition="$vo.userid eq ''"}<span style="color:red;">(虚拟用户)</span>{/if}
                                        </td>

                                        <td style="text-align: center; vertical-align: middle; ">
                                            {$evaluation_score[$vo['pnum']]}
                                        </td>
                                        <td style="text-align: center; vertical-align: middle; ">
                                            {$evaluation_score[$vo['guide_num']]}
                                        </td>
                                        <td style="text-align: center; vertical-align: middle; ">
                                            {$evaluation_score[$vo['trip_num']]}
                                        </td>

                                        <td style="text-align: center; vertical-align: middle; ">
                                            {$evaluation_score[$vo['food_num']]}
                                        </td>

                                        <td style="text-align: center; vertical-align: middle; ">
                                           {$evaluation_score[$vo['service_num']]}
                                        </td>
                                        <td style="text-align: center; vertical-align: middle; ">
                                            {$vo.updatetime|date="Y-m-d",###}
                                        </td>
                                        <td style="text-align: center; vertical-align: middle; ">
                                            {if condition="$vo.mstatus eq 0"}审核通过显示{else/}不显示{/if}
                                        </td>
                                        <td style="text-align: center; vertical-align: middle; ">
                                            <a href="/admin/product/reviews_edit?id={$vo.id}" class="btn btn-success btn-edit btn-disabled" title="编辑"><i class="fa fa-pencil"></i> 修改</a>
                                            <a href="javascript:;"  onclick="re_del('{$vo.id}');"  class="btn btn-success btn-del" title="删除"><i class="fa fa-trash"></i> 删除</a>
                                        </td>
                                    </tr>
                                    {/volist}

                                    </tbody>
                                </table>
                           </form>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</div>
<script>

    function re_del(id){

        $.ajax({
            type:'post',
            dataType:'json',
            url:'/admin/product/reviews_del',
            data:{"id":id},
            success:function(data){
                if(data.status==1){
                    alert(data.message);
                    location.reload();
                }else{
                    alert(data.message);
                }

            }
        })

    }


</script>







